﻿using LT_UI;
using NET;
using System.Runtime.CompilerServices;

namespace Launch
{
    [Window(isResident: false)]
    public class LaunchWindow : AbsWindow
    {
        public LaunchWindow(bool isResident) : base(isResident)
        {
        }

        public override void OnShow(ITuple tuple = null)
        {
            ShowPanel<LaunchPanel>();
        }

        public override void OnInit(ITuple tuple = null)
        {
            base.OnInit(tuple);

            LTGL.Ins.WebSocketMgr.RegisterWebNetMsg<WebCommentBeat>(EWebNetCode.CommentBeat, OnCommentBeat, TokenSource.Token);

        }
        private void OnCommentBeat(AbsWebSocketBody obj)
        {
            LTLog.L($"评论测试数据：{obj.ToString()}");
        }
    }
}
